package predict.app.ddms;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class second extends AppCompatActivity {

    private static final String LIFT_TAG = "second";
    Button back = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);

        Log.v(second.LIFT_TAG, "第二个页面onCreate");
        back = (Button)findViewById(R.id.button4);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(second.this, MainActivity.class);
                second.this.startActivity(intent);
            }
        });

    }

    @Override
    protected void onDestroy() {
        Log.v(second.LIFT_TAG, "第二个页面的onDestory");
        super.onDestroy();
    }

    @Override
    protected void onPause() {
        Log.v(second.LIFT_TAG, "第二个页面的onPause");
        super.onPause();
    }

    @Override
    protected  void onRestart() {
        Log.v(second.LIFT_TAG, "第二个页面的onRestart");
        super.onRestart();
    }

    @Override
    protected void onResume() {
        Log.v(second.LIFT_TAG, "第二个页面的onResume");
        super.onResume();
    }

    @Override
    protected void onStart() {
        Log.v(second.LIFT_TAG, "第二个页面的onStart");
        super.onStart();
    }

    @Override
    protected void onStop() {
        Log.v(second.LIFT_TAG, "第二个页面的onStop");
        super.onStop();
    }
}
